package com.cssl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

/**
 * 
 * @TableName medical
 */
@TableName(value ="medical")
@Data
@Document("medical")
public class Medical implements Serializable {
    /**
     * 医疗编号
     */
    @TableId(type = IdType.AUTO)
    @MongoId
    private Integer mid;

    /**
     * 标题
     */
    private String mtitle;
    /**
     * 详情
     */
    private String mdetail;

    /**
     * 发布时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date mdate;

    /**
     * 宠物类型（2狗、1猫）
     */
    private Integer mtypes;

    /**
     * 图片
     */
    private String mfilename;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}